Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use the cluster-api operator for tilt installs instead of clusterctl #217

Merged
merged 1 commit into from
Mar 29, 2024

Conversation

eljohnson92
Copy link
Collaborator

What type of PR is this?
/kind feature

What this PR does / why we need it:
This PR replaces clusterctl init ... local_commands in tilt with usage of the cluster-api operator and installs of the resources directly. The main benefit of doing it this way is we can easily stream container logs and see the health of the various parts of the CAPL installation. this otherwise should be a no-op for other workflows
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests
  • adds or updates e2e tests

Copy link

codecov bot commented Mar 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 42.10%. Comparing base (b8dcf4e) to head (c592aa3).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #217   +/-   ##
=======================================
  Coverage   42.10%   42.10%           
=======================================
  Files          25       25           
  Lines        1375     1375           
=======================================
  Hits          579      579           
  Misses        783      783           
  Partials       13       13           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@eljohnson92 eljohnson92 force-pushed the tilt-cluster-api-operator branch 11 times, most recently from 5b96f5b to a918c11 Compare March 28, 2024 18:45
Copy link
Contributor

@komer3 komer3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this change, we won't be able to use clusterclt move. Which can be an issue since people who create a mgmt cluster using make local-deploy won't be able to utilize clusterclt functionality completely.

@eljohnson92
Copy link
Collaborator Author

@Komer I think the operator sets the right labels?

  labels:
    cluster.x-k8s.io/provider: bootstrap-k3s
    cluster.x-k8s.io/v1beta1: v1beta1
    clusterctl.cluster.x-k8s.io: ""

Tiltfile Outdated Show resolved Hide resolved
hack/manifests/core.yaml Outdated Show resolved Hide resolved
@eljohnson92 eljohnson92 force-pushed the tilt-cluster-api-operator branch 2 times, most recently from 1fb83f0 to ad46f52 Compare March 29, 2024 18:11
Tiltfile Outdated Show resolved Hide resolved
@eljohnson92 eljohnson92 force-pushed the tilt-cluster-api-operator branch from ad46f52 to c592aa3 Compare March 29, 2024 20:25
Copy link
Contributor

@komer3 komer3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@eljohnson92 eljohnson92 merged commit 21ec3f6 into main Mar 29, 2024
8 checks passed
@eljohnson92 eljohnson92 deleted the tilt-cluster-api-operator branch March 29, 2024 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants